package com.leave.dao;

import java.util.List;
import java.util.Set;

import com.leave.entity.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

	List<Role> getAllRole();

	Set<Role> getRoleByLoginName(String loginName);
	
	Set<String> getRoleNameByLoginName(String loginName);

	int deleteByArrId(int[] arrId);

	Role selectByRoleName(String roleName);

}